package com.lock.immersive.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.lock.immersive.pojo.enums.Identity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer userId;

    /**
     * phone
     */
    @TableField("user_phone")
    private String userPhone;

    /**
     * password
     */
    private String userPassword;

    /**
     * 微信openid
     */
    private String openId;
    /**
     * 昵称
     */
    private String nickName;
    /**
     * 头像
     */
    private String userAvatar;


    /**
     * 0 女生,1 男生
     */
    private Integer gender;

    /**
     * 
     */
    private Integer age;

    /**
     * 个性标签
     */
    private String userDesc;

    private Integer merchantId;
    /**
     * 0 普通用户, 1 管理员或客服, 2 超级管理员或商家
     */
    private Identity identity = Identity.USER;

    private String userAccount;
    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @TableLogic
    private Integer isDelete = 0;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}